package com.redoor.app.stake.common.service;

/**
 * Created by wangjunlei on 2018/1/24.
 */
public interface RedisService {


    public boolean add(String key, Object value);
    /**  
     *  reids新增
     *   
     * @author ZhangMumu  
     * @date 2018/4/2 0002 20:50
     * @param time 猜测为过期时间
     * @return
     */  
    public boolean add(String key, Object value, long time);

    public Object get(String key);

    public boolean isExists(String key);

    public void delete(String key);

    /**
     * 根据key模糊删除
     * @param pattern
     */
    public void deleteByPattern(String pattern);

    public long incr(String key);

}
